﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Site.Models.FriendList>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Liste d'amis
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Liste d'amis</h2>

<table>
    <tr>
        <th></th>
        <th>
            Nom
        </th>
        <th>
            E-mail
        </th>
        <th>
            Accepté
        </th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <img src="<%: Html.DisplayFor(modelItem => item.user.USER_AVATAR) %>" title="<%: Html.DisplayFor(modelItem => item.user.UserName)%>" alt="<%: Html.DisplayFor(modelItem => item.user.UserName)%>"/>
        </td>
        <td>
            <%: Html.ActionLink(item.user.UserName, "Details", new { id = item.user.UserId })%>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.user.USER_MAIL) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.friend.FRIEND_ACCEPTED) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="alerts" runat="server">
</asp:Content>
